package cn.edu.cdut.controller;

import cn.edu.cdut.dto.MyRes;
import cn.edu.cdut.dto.Wish;
import cn.edu.cdut.model.WishInfo;
import cn.edu.cdut.service.WishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author  kobe
 * Created on 2017-05-27-23:00
 */
@RestController
public class WishController {
        @Autowired
        private WishService wishService;

        @PostMapping("/addWish")
        public MyRes addWish(@RequestBody Wish wish) {
                return wishService.saveWish(wish);
        }

}
